﻿using BCCommon;
using BCCommon.ExceptionExtensions;
using BCDto.UploadHandleComponent;

namespace BCService.UploadHandleComponent
{
    /// <summary>
    /// 上传处理接口
    /// </summary>
    [NonInjectionAttribute]
    public interface IUploadHandle
    {
        /// <summary>
        /// 处理文件
        /// </summary>
        /// <param name="uploadFileDto">上传文件模型</param>
        /// <returns></returns>
        UploadResponseDto Process(UploadFileDto uploadFileDto);
        /// <summary>
        /// 效验数据
        /// </summary>
        /// <param name="uploadFileDto">上传文件模型</param>
        /// <exception cref="UploadFileException"></exception>
        void CheckData(UploadFileDto uploadFileDto);
    }
}
